﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第九十二题
//BC94 N个数之和
//https://www.nowcoder.com/practice/b007744eb43b4f7b95d9e87de01528db?tpId=107&tqId=33375&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    int sum = 0;
    int temp = 0;
    scanf("%d", &n);
    //输入数据，并计算和
    for (int i = 0; i < n; i++) {
        scanf("%d", &temp);
        sum += temp;
    }
    printf("%d\n", sum);

    return 0;
}